package cn.bj.xd.mdy.entity;

import cn.bj.xd.mdy.enums.ListTypeEnum;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
public class MdyRequest {
    private String appKey;
    private String sign;
    private String name;
    private String alias;
    private String sectionId;
    private String worksheetId;
    private String viewId;
    private String rowId;
    private List<String> rowIds;
    private Integer pageSize;
    private Integer pageIndex;
    private String keyWords;
    private ListTypeEnum listType;
    private String controlId;
    private List<MdyControl> controls;
    private List<MdyFilter> filters;
    private String sortId;
    private boolean isAsc;
    private List<List<MdyControl>> rows;
    private Boolean returnRowIds;
    private Boolean triggerWorkflow;

    private String notGetTotal;
    private String useControlId;
    private boolean getSystemControl;
    private boolean thoroughDelete;
    private List<String> controlIds;
    private List<String> visibleFields;//可见字段ID集合
    private String validTime;//格式:YYYY-MM-DD HH:mm:ss,为空表示永久有效
    private String password;//密码,为空表示不设置密码
}

